// 引入封装的请求服务
import { POST, UPLOAD } from "@/services/request";

const base = {
    register(data = {}) {
        return POST({
            url: "/business/base/register",
            params: data,
        });
    },
    login(data = {}) {
        return POST({
            url: "/business/base/login",
            params: data,
        });
    },
    profile(data = {})
    {
        return UPLOAD({
            url:'/business/base/profile',
            params:data
        });
    },
    index(data = {})
    {
        return POST({
            url:'/business/base/index',
            params:data
        });
    },
    emailSend(data = {})
    {
        return POST({
            url:'/business/base/send',
            params:data
        });
    },
    emailCheck(data = {})
    {
        return POST({
            url:'/business/base/check',
            params:data
        });
    }
};

export default base;
